package br.com.consigsys.util.validator;


import javax.faces.validator.FacesValidator;
import javax.faces.validator.RegexValidator;
import javax.faces.validator.Validator;

@FacesValidator("emailValidate")
public class EmailValidator extends RegexValidator implements Validator{
   
	protected static final String REGEX_EMAIL = "[\\w\\.-]*[a-zA-Z0-9_]@[\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]";
	
	public EmailValidator(){
		super();
		this.setPattern(EmailValidator.REGEX_EMAIL);
	}
	
}
